cc.Class({
    extends: cc.Component,

    properties: {
        scoreLab: cc.Label,
        reStartBtn: cc.Node
    },

    // use this for initialization
    onLoad: function () {
        // 最终得分
        this.scoreLab.string = "最终得分：" + currentScore;
        this.reStartBtn.on("touchstart", function(){
            //
            cc.log("点击了重新开始按钮了。。。");
            cc.director.loadScene('Main');
        });
    },

    // called every frame, uncomment this function to activate update callback
    // update: function (dt) {

    // },
});
